package com.ddyx.generator.code.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 商品SKU
 * </p>
 *
 * @author agula
 * @since 2019-08-06
 */
@TableName("p_goods_sku")
public class GoodsSku extends Model<GoodsSku> {

    private static final long serialVersionUID=1L;

    /**
     * SKUID
     */
    @TableId(value = "sku_id", type = IdType.AUTO)
    private Integer skuId;

    /**
     * 商品ID
     */
    private Integer goodsId;

    /**
     * SKU编码
     */
    private String skuCode;

    /**
     * SKU属性,SKU属性KV值对字符串
     */
    private String skuProperties;

    /**
     * SKU外部编码
     */
    private String skuOuterId;

    /**
     * 规格名称
     */
    private String specName;

    /**
     * 吊牌价
     */
    private BigDecimal tagPrice;

    /**
     * 采购价
     */
    private BigDecimal purchasePrice;

    /**
     * 折扣价
     */
    private BigDecimal discountPrice;

    /**
     * 会员价
     */
    private BigDecimal memberPrice;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;


    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public String getSkuProperties() {
        return skuProperties;
    }

    public void setSkuProperties(String skuProperties) {
        this.skuProperties = skuProperties;
    }

    public String getSkuOuterId() {
        return skuOuterId;
    }

    public void setSkuOuterId(String skuOuterId) {
        this.skuOuterId = skuOuterId;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public BigDecimal getTagPrice() {
        return tagPrice;
    }

    public void setTagPrice(BigDecimal tagPrice) {
        this.tagPrice = tagPrice;
    }

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(BigDecimal discountPrice) {
        this.discountPrice = discountPrice;
    }

    public BigDecimal getMemberPrice() {
        return memberPrice;
    }

    public void setMemberPrice(BigDecimal memberPrice) {
        this.memberPrice = memberPrice;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    protected Serializable pkVal() {
        return this.skuId;
    }

    @Override
    public String toString() {
        return "GoodsSku{" +
        "skuId=" + skuId +
        ", goodsId=" + goodsId +
        ", skuCode=" + skuCode +
        ", skuProperties=" + skuProperties +
        ", skuOuterId=" + skuOuterId +
        ", specName=" + specName +
        ", tagPrice=" + tagPrice +
        ", purchasePrice=" + purchasePrice +
        ", discountPrice=" + discountPrice +
        ", memberPrice=" + memberPrice +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
